import React, { Component } from 'react';

class App extends Component {
    state={
        value:"",
        checked:true,
    }
    render() {
        return (
            <div>
                {/* readOnly */}
                {/* <input type="text" value={this.state.value} readOnly/> */}
                {/* <input type="text" defaultValue={this.state.value}/>
                <input type="checkbox" defaultChecked={this.state.checked}/> */}
                    {/* null 输入最初被锁定，但在短时间延迟后变为可编辑 */}
                <input type="text" value={null}/>
            </div>
        );
    }
}

export default App;
